class CreateEvents < ActiveRecord::Migration
  def self.up
		create_table :events do |t|
			t.integer :eventable_id
			t.string :eventable_type, :limit=>30
			t.integer :user_id

			t.timestamps
		end

		add_index :events, [:user_id], :name=>"fk_user"
  end

  def self.down
		drop_table :events
  end
end
